

return {

-- 一个函数
  config = function()
    local status, _ = pcall(require, "kanagawa")
    if not status then
      return
    end

-- 这是环境变量

-- setup must be called before loading the colorscheme
    -- Default options:
    vim.o.background = "dark" -- or "light" for light mode
--    vim.o.background = "light" -- or "light" for light mode

    -- for CopilotSuggestion
    --vim.cmd("highlight CopilotSuggestion guifg=#555555 ctermfg=8")
    vim.cmd("highlight CopilotSuggestion guifg=#0000ff ctermfg=8")

    -- Global Statusline. Note: it works really nice with dimInactive = true
    vim.opt.laststatus = 3
    vim.opt.fillchars:append({
      horiz = "━",
      horizup = "┻",
      horizdown = "┳",
      vert = "┃",
      vertleft = "┨",
      vertright = "┣",
      verthoriz = "╋",
    })






--对插件的配置

    require("kanagawa").setup({
      compile = false, -- enable compiling the colorscheme
      undercurl = true, -- enable undercurls
      commentStyle = { italic = true },
      functionStyle = {},
      keywordStyle = { italic = true },
      statementStyle = { bold = true },
      typeStyle = {},
      transparent = false, -- do not set background color
      dimInactive = false, -- dim inactive window `:h hl-NormalNC`
      terminalColors = true, -- define vim.g.terminal_color_{0,17}
      colors = { -- add/modify theme and palette colors
        palette = {},
        theme = { wave = {}, lotus = {}, dragon = {}, all = {} },
      },
      overrides = function(colors) -- add/modify highlights
        return {



        }
      end,
      theme = "wave", -- Load "wave" theme when 'background' option is not set
--      theme = "dragon", -- Load "wave" theme when 'background' option is not set
      background = { -- map the value of 'background' option to a theme
        dark = "wave", -- try "dragon" !
----        dark = "dragon", -- try "dragon" !
        light = "lotus",
      },
    })

    -- setup must be called before loading
    vim.cmd("colorscheme kanagawa")
    vim.api.nvim_set_hl(0, 'Visual', { fg = nil, bg = '#00ff00' })

--    vim.api.nvim_set_hl(0, 'Visual', { fg = nil, bg = '#00ff00' })

-- 这是之前的

  end,

}



